package cate.game.role.pvp.throne.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTB;
import easy.java.practice.errorcode.EcResult;

@ClientMsg(title = "选拔赛刷新对手 の 请求")
public class TBTrialOpponentReq implements MsgInput {

    @Override
    public void execute(GameBody game, ClientContext cc) {
        EcResult<Void> r = cc.getRole().getPvp().throne.trial.refresh();
        game.notice.message(cc.getRole(), r,true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTB.REFRESH_OPPONENT_REQ;
    }
}
